Total Complexity | 73 |
Dependencies | 8 |
Dependents | 1 |
Total lines | 525 |
Lines of code | 262 |
Logical lines of code | 155 |
Comment lines | 144 |
Methods | 26 |
Properties | 10 |
Method | Rating | Maintainability | Complexity | Lines of code |
---|---|---|---|---|
request() | 39 | 17 | 58 | |
executeRequestWithRetries() | 43 | 8 | 48 | |
shouldRetry() | 53 | 9 | 26 | |
handleCurlError() | 50 | 7 | 28 | |
sleepTime() | 58 | 4 | 13 | |
hasHeader() | 65 | 3 | 8 | |
resetCurlHandle() | 69 | 3 | 7 | |
__construct() | 70 | 2 | 6 | |
closeCurlHandle() | 71 | 2 | 6 | |
instance() | 71 | 2 | 6 | |
getRequestStatusCallback() | 82 | 1 | 3 | |
setRequestStatusCallback() | 81 | 1 | 3 | |
setTimeout() | 75 | 1 | 4 | |
setEnableHttp2() | 81 | 1 | 3 | |
getTimeout() | 82 | 1 | 3 | |
getConnectTimeout() | 82 | 1 | 3 | |
getEnableHttp2() | 82 | 1 | 3 | |
setEnablePersistentConnections() | 81 | 1 | 3 | |
getEnablePersistentConnections() | 82 | 1 | 3 | |
getUserAgentInfo() | 82 | 1 | 3 | |
getDefaultOptions() | 82 | 1 | 3 | |
initCurlHandle() | 76 | 1 | 4 | |
initUserAgentInfo() | 68 | 1 | 7 | |
__destruct() | 82 | 1 | 3 | |
canSafelyUseHttp2() | 74 | 1 | 4 | |
setConnectTimeout() | 75 | 1 | 4 |